//
//  MapTableViewCell.m
//  A Learning Walk
//
//  Created by dllo on 16/6/25.
//  Copyright © 2016年 战斗民族. All rights reserved.
//

#import "MapTableViewCell.h"

@implementation MapTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self =[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
-(void)creatCell{
    
    self.label = [[UILabel alloc] init];
    self.label.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.label];
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.textColor = [UIColor colorWithRed:17/255.0 green:168/255.0 blue:247/255.0 alpha:1];
    
    self.view = [[UIView alloc] init];
    self.view.backgroundColor = [UIColor colorWithRed:173/255.0 green:187/255.0 blue:191/255.0 alpha:1];
    [self.contentView addSubview:self.view];
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.label.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height-10);
    self.view.frame = CGRectMake(0, self.contentView.frame.size.height-10, self.contentView.frame.size.width, 10);
}


@end
